-module (walks).
-export ([plan_route/2]).

-spec plan_route(From:: point(), To:: point()) -> route().
-type direction()		:: north | south | east | west.
-type point()			:: {integer(), integer()}.
-type route()			:: [{go, direction(), integer()}].
-type angle()			:: {Degrees :: 0..360, Minutes :: 0..60, Seconds::0..60}.
-type position()		:: {latitude | longitude, angle()}.

-spec plan_route_position(From::position(), To::position()) -> ok.

plan_route(From, To) ->
	[FromX, FromY] = From,
	[ToX, ToY] = To,
	[{go, south, FromY+ToY}, {go, north, FromX+ToX}].

plan_route_position(From, To) -> ok.